﻿<%@ Page Language="C#" MasterPageFile="~/master.Master" AutoEventWireup="true" CodeBehind="Producten.aspx.cs" Inherits="McDonalds_v1._0._default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">       
    <form id="form1" runat="server">    
     <div id="producten_menu">
        <br />
&nbsp;Kies hieronder een product of menu voor meer informatie.<br />
        <br />

        <div style="background-color: #FF0000; width:200px; color:White; margin-top:20px; border-top:1px solid black; border-bottom:1px solid black; ">&nbsp;<strong>Producten</strong></div>
                <asp:TreeView ID="MenuTree" runat="server" 
             OnSelectedNodeChanged="Select_Change" ImageSet="BulletedList2" 
             ShowExpandCollapse="False">
                    <HoverNodeStyle Font-Underline="True" ForeColor="#5555DD" />
                    <NodeStyle Font-Names="Tahoma" Font-Size="10pt" ForeColor="Black" 
                        HorizontalPadding="5px" NodeSpacing="0px" VerticalPadding="0px" />
                    <ParentNodeStyle Font-Bold="False" />
                    <SelectedNodeStyle Font-Underline="True" ForeColor="#5555DD" 
                        HorizontalPadding="0px" VerticalPadding="0px" />
        </asp:TreeView>
        <div style="background-color: #FF0000; width:200px; color:White; margin-top:20px; float:left; border-top:1px solid black; border-bottom:1px solid black; ">&nbsp;<strong>Menu's</strong></div><br />
        <% foreach(McDonalds_v1._0.Menu mcmenu in menulist)
           {%>
            <div class="producten_menu_item">
            <a href="/producten.aspx?menunr=<%= mcmenu.Menunr %>"><%= mcmenu.Naam %></a>
            </div>
        <%} %>        
        <div style="background-color: #FF0000; width:200px; color:White; margin-top:20px; margin-bottom:20px; float:left; border-top:1px solid black; border-bottom:1px solid black; ">&nbsp;<strong>Top 10 bestelde producten</strong></div>
            <div id="TagCloudFXDiv" style="float:left">
			    <a href="http://www.adobe.com/go/getflashplayer">
				    <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
			    </a>
		    </div>
        </div>
    <div id="product">
        <asp:Label ID="product_naam" runat="server" />
        <asp:Image ID="product_img" runat="server" />
        <div id="bestel" style="float:right; margin-right:80px; margin-top:50px;">
        <asp:Label ID="aantal_txt" runat="server" Text="Aantal" Visible="false"></asp:Label> <asp:TextBox ID="Aantal" runat="server" Width="20px" Text="1" Visible="false"></asp:TextBox> 
        
        <br />
        <asp:Button ID="bestel_knop" runat="server" Text="Bestel product" Visible="false" OnClick="bestel_product"/>
            <br />
            <asp:Label ID="succesmelding" runat="server" Visible="false" Text="Uw bestelling is succesvol geplaatst!" ForeColor="Green"></asp:Label>
        </div>
    </div>
    <div id="ingredienten">
        <asp:GridView ID="Ingredienten" runat="server" GridLines="None">
        </asp:GridView>
    </div>
    <asp:Literal ID="Literal1" runat="server" ></asp:Literal>     
    
    </form>
</asp:Content>

